var Fight,
  __extends =
    (this && this.__extends) ||
    (function () {
      var t = function (r, o) {
        return (t =
          Object.setPrototypeOf ||
          ({ __proto__: [] } instanceof Array &&
            function (t, r) {
              t.__proto__ = r;
            }) ||
          function (t, r) {
            for (var o in r)
              Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
          })(r, o);
      };
      return function (r, o) {
        function n() {
          this.constructor = r;
        }
        if ("function" != typeof o && null !== o)
          throw new TypeError(
            "Class extends value " + String(o) + " is not a constructor or null"
          );
        t(r, o),
          (r.prototype =
            null === o
              ? Object.create(o)
              : ((n.prototype = o.prototype), new n()));
      };
    })();
!(function (t) {
  var r = (function (t) {
    function r(r, o, n) {
      var i = t.call(this) || this;
      return (
        (i.w = 30),
        (i.color = "#ff0000"),
        (i.type = 0),
        (i.v = r),
        o && (i.type = o),
        n && (i.color = n),
        (i.pivotX = 15),
        i
      );
    }
    return (
      __extends(r, t),
      (r.prototype.draw = function () {
        this.graphics.clear(),
          this.graphics.drawRect(0, 0, this.w, 5, "#000000", "#ffffff", 1),
          this.graphics.drawRect(1, 1, (this.w - 2) * this.v, 3, this.color);
      }),
      (r.prototype.set = function (t) {
        this.v = t;
      }),
      (r.prototype.refresh = function (t) {
        t < 0 && (t = 0), this.v != t && ((this.v = t), this.draw());
      }),
      r
    );
  })(Laya.Sprite);
  t.Strip = r;
})(Fight || (Fight = {}));
